/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package argtrust.argsys;

/**
 *
 * @author Yuqing Tang <ytang@cs.gc.cuny.edu>
 */
public class ArguingLink {

    protected Defeat mDefeat;
    protected ArguingNode mDefeaterNode;
//    protected ArguingNode mDefeatee;

    public ArguingLink() {
    }

    public ArguingLink(ArguingNode defeater,
            Defeat defeat) {
        mDefeaterNode = defeater;
        mDefeat = defeat;
    }

    public ArguingNode getDefeaterNode() {
        return mDefeaterNode;
    }

    public Defeat getDefeat() {
        return mDefeat;
    }

    public void debug_print(java.io.PrintStream out) {
        out.println(" is " + getDefeat().getDefeatType() + " by ");
        out.println(this.getDefeaterNode().getArgument().getEndInferenceNode().toString());
    }
}
